package com.chaodev.base.service;

import com.github.pagehelper.PageInfo;
import com.chaodev.base.model.Member;
import org.springframework.dao.DataAccessException;

import java.util.List;

/**
 * vcbase
 *
 * @author 95634
 * @描述
 * @date 2023/5/22 11:09
 **/
public interface MemberService {
    /**
     * 获取会员表信息
     * @param id
     * @return TbMember
     */
    Member findDataById(String id);

    /**
     * 保存会员表信息
     * @param member
     * @throws DataAccessException
     */
    void saveData(Member member) throws DataAccessException;

    /**
     * 新增会员表信息
     * @param member
     * @throws DataAccessException
     */
    void insertData(Member member) throws DataAccessException;

    /**
     * 更新会员表信息
     * @param member
     * @throws DataAccessException
     */
    void updateDataById(Member member) throws DataAccessException;

    /**
     * 删除会员表信息
     * @param id
     * @throws DataAccessException
     */
    void deleteDataById(String id) throws DataAccessException;

    /**
     * 查询列表
     * @param member
     * @return List
     */
    List<Member> queryDataList(Member member);

    /**
     * 查询分页
     * @param start
     * @param limit
     * @param member
     * @return PageInfo
     */
    PageInfo<Member> queryPageList(int start, int limit, Member member);
}
